<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<h2 id="day"></h2>
		<script type="text/javascript">
			//从date  对象返回周一中的某一天（0~6）；
			var date=new Date();
			var h2=document.getElementById("day");
			var s="今天星期"
			switch(date){
				case 0:
			    s+="天";
			    break;
			    case 1:
			   s+="一";
			    break;
			        case 2:
			   s+="二";
			    break;
			           case 3:
			   s+="三";
			    break;
			           case 4:
			   s+="四";
			    break;
			           case 5:
			   s+="五";
			    break;
			           case 6:
			   s+="六";
			    break;
			    default:
			    break;
			    
			}
			h2.innerText=s;
		</script>
	</body>
</html>
